home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgramD2.iso
/
Borland
/
Borland C++ For TASM
/
USRGUIDE.PAK
/
SHOWTOT.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-02-21
|
508b
|
25 lines
/* Turbo Assembler example. Copyright (c) 1993 By Borland International, Inc.
SHOWTOT.CPP
The program provides external data to DOTOTAL.ASM
Usage: bcc showtot.cpp dototal.asm
From the Turbo Assembler User's Guide
Ch. 18: Interfacing Turbo Assembler with Borland C++
*/
#include <stdio.h>
extern "C" int DoTotal(void);
extern int StartingValue;
int Repetitions;
int main()
{
Repetitions = 10;
StartingValue = 2;
printf("%d\n", DoTotal());
return 0;
}